package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName : WechatAdvertisementFeign
 * @Author : Lenovo
 * @Date: 2021/7/23 10:57
 * @Description :
 */
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatAdvertisementFeign {
    @GetMapping("/wechat/adver/queryadvbyadcode")
    String queryAdvByAdCode(@RequestParam("jsonObject") JSONObject jsonObject);
    @GetMapping("/wechat/adver/shopindex")
    String queryAdvertisementByAdCodeChange(@RequestParam("jsonObject")JSONObject jsonObject);
    @GetMapping("/wechat/adver/getadvertisementlist")
    String getAdvertisementList(@RequestParam("jsonObject")JSONObject jsonObject);
    @PostMapping("/wechat/adver/addadvertisement")
    String addAdvertisement(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/adver/modifyadvertisement")
    String modifyAdvertisement(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/adver/removeadvertisement")
    String removeAdvertisement(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/adver/productclassadsitelist")
    String ajaxProductClassAdsiteList(@RequestParam("classId")Long classId);
    @GetMapping("/wechat/adver/getlogolanguage")
    String getLogoLanguage();

}
